export default function() {
  return {
    userInfo: this.$store.state.userInfo,
    areaId: this.$store.state.userInfo.home_city,
    role: sessionStorage.getItem('role'),
    areaType: '',
    roleType: 'all',
    userArea:'全国地市排名情况TOP10',
    userAll:'全国地市排名情况TOP10',
    titleShow:true,
    showDate: '',
    showList1:true,
    showtitle1:false,
    showList2:true,
    showtitle2:false,
    showCharBar:true,
    showMore:true,
    pageLoading: true,
    datePicker: {
      showData: '--年--月--日',
      selectDate: '',
      show: false,
      currentDate: new Date(),
      minDate: new Date(),
      maxDate: new Date(),
    },
    areaInfo: {
      show: false,
      defaultIndex: 0,
      showArea: '',
      selectId: this.$store.state.userInfo.home_city,
      columns: []
    },
    cityInfo: {
      show: false,
      defaultIndex: 0,
      showArea: "地市",
      selectId: "0",
      columns: []
    },
    //菜单
    menus: {
      list: [
        {name: '用户发展', key: 'a'},
        {name: '运营效率', key: 'b'},
        {name: '城市换电运营情况', key: 'c'},
        {name: '资源资产', key: 'd'},
        {name: '租赁数据', key: 'e'},
      ],
      show: false
    },
    //用户发展
    register:{
      active: '2488',
      titleName:'注册用户数',
      data: [
        { id: '1',name: '注册用户数',value:'',unit:'户',idCode: '2488',},
        { id: '2',name: '付费用户数',value:'',unit:'户',idCode: '2489',}
      ],
      dayData: [
        { id: '1',name: '本日发展付费用户数',value:'',unit:'户',idCode: '2490',},
        { id: '2',name: '本日离网付费用户数',value:'',unit:'户',idCode: '2491',},
        { id: '3',name: '本日净增付费用户',value:'',unit:'户',idCode: '2492',}
      ],
      monData: [
        { id: '1',name: '本月发展付费用户数',value:'',unit:'户',idCode: '2493',},
        { id: '2',name: '本月离网付费用户数',value:'',unit:'户',idCode: '2494',},
        { id: '3',name: '本月净增付费用户',value:'',unit:'户',idCode: '2495',}
      ],
      yearData: [
        { id: '1',name: '本年净增付费用户',value:'',unit:'户',idCode: '2496',}
      ],
    },
    //运营效率
    operate:{
      active: '2497',
      titleName:'电池用户比',
      data: [
        {name: '电池用户比',value:'111111119',unit:'%',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2497'},
        {name: '活跃人数',value:'',unit:'户',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2498'},
        {name: '本日换电次数',value:'',unit:'次',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2499'},
        {name: '付费用户与注册用户比',value:'',unit:'%',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2500'},
        {name: '日活跃用户与付费用户比',value:'',unit:'%',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2501'},
        {name: '户均换电次数',value:'',unit:'次',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2502'},
        {name: '换电成功率',value:'',unit:'%',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2503'},
        {name: '电池满足率',value:'',unit:'%',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2504'},
        {name: '本日行驶里程',value:'',unit:'km',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2505'},
        {name: '充放电次数',value:'',unit:'次',hb_value:'',hb_unit:'%',hb_:'1',idCode:'2514'},
      ],
    },
    // 城市换电运营情况
    //本日新增付费用户-排序
    newPaymentDate: {
      showAll: false,
      loading: false,
      showMore: true,
      userArea: '',
      role: 'all',
      barData: {
        data: [],
        unit: '户',
        rank: 'asc',
        rankAction: false
      }
    },
    //本日换电次数-排序
    changeTimesDate: {
      showAll: false,
      loading: false,
      showMore: true,
      userArea: '',
      role: 'all',
      barData: {
        data: [],
        unit: '次',
        rank: 'asc',
        rankAction: false
      }
    },
    //资源资产
    resources:{
      active: '2506',
      titleName:'C端换电站数量',
      data: [
        {name: 'C端换电站数量',value:'',unit:'站',idCode:'2506'},
        {name: 'C端换电柜数量',value:'',unit:'个',idCode:'2507'},
        {name: 'C端本年净增换电柜数量',value:'',unit:'个',idCode:'2508'},
        {name: 'C端仓位数量',value:'',unit:'个',idCode:'2509'},
        {name: 'C端电池数量',value:'',unit:'个',idCode:'2510'},
        {name: 'C端本年净增电池数',value:'',unit:'个',idCode:'2511'},
      ],
    },
    //租赁数据
    lease:{
      active: '2512',
      titleName:'B端换电柜数量',
      data: [
        {name: 'B端换电柜数量',value:'',unit:'个',idCode:'2512'},
        {name: 'B端电池数量',value:'',unit:'个',idCode:'2513'},
      ],
    },


    //用户发展
    registerUser: {
      show: true,
      loading: false,
      income: '',
      increase: '',
      increaseRange: '',
      barData: {
        data: [],
        unit: '户',
      },
      lineData: {
        data: [],
        unit: '户',
      },
      pieData: {
        total: '0',
        data: [],
        unit: '户'
      },
    },
    //运营效率
    operateUser: {
      show: true,
      loading: false,
      income: '',
      increase: '',
      increaseRange: '',
      barData: {
        data: [],
        unit: '%',
      },
      lineData: {
        data: [],
        unit: '%',
      },
      pieData: {
        total: '0',
        data: [],
        unit: '%'
      },
    },
    //资源资产
    resourcesUser:{
      show: true,
      loading: false,
      income: '',
      increase: '',
      increaseRange: '',
      barData: {
        data: [],
        unit: '站',
      },
      lineData: {
        data: [],
        unit: '站',
      },
      pieData: {
        total: '0',
        data: [],
        unit: '个'
      },
    },
    //租赁数据
    leaseUser:{
      show: true,
      loading: false,
      income: '',
      increase: '',
      increaseRange: '',
      barData: {
        data: [],
        unit: '个',
      },
      lineData: {
        data: [],
        unit: '个',
      },
      pieData: {
        total: '0',
        data: [],
        unit: '个'
      },
    },
    goTopBtn: {
      show: false
    },
    //指标口径说明
    tipDialog: {
      show: false,
      list: [],
      a: {
        list: [
          {
            title: '注册用户数',
            detail: '历史累计平台内所有用户数合计',
          },
          {
            title: '付费用户数',
            detail: '当前可使用换电服务的用户数'
          },
          {
            title: '本日发展付费用户数',
            detail: '本日新增用户与昨日离网今日续租的用户数合计'
          },
          {
            title: '本日离网付费用户数',
            detail: '套餐到期用户与本日退网的用户数合计',
          },
          {
            title: '本日净增付费用户数',
            detail: '本日发展付费用户-本日离网付费用户'
          },
          {
            title: '本月发展付费用户数',
            detail: '本月每日发展付费用户数合计'
          },
          {
            title: '本月离网付费用户数',
            detail: '本月每日离网付费用户数合计',
          },
          {
            title: '本月净增付费用户数',
            detail: '本月每日净增付费用户数合计'
          },
          {
            title: '本年净增付费用户数',
            detail: '本年每日净增付费用户数合计'
          },
        ]
      },
      b: {
        list: [
          {
            title: '电池用户比',
            detail: 'C端电池数量/付费用户数',
          },
          {
            title: '活跃人数',
            detail: '本日发生换电的用户数'
          },
          {
            title: '本日换电次数',
            detail: '本日发生换电的次数'
          },
          {
            title: '付费用户与注册用户比',
            intro: '付费用户数/注册用户数'
          },
          {
            title: '日活跃用户与付费用户比',
            detail: '活跃人数/付费用户数',
          },
          {
            title: '户均换电次数',
            detail: '本日换电次数/活跃人数'
          },
          {
            title: '换电成功率',
            detail: '换电成功次数/换电次数'
          },
          {
            title: '电池满足率',
            intro: '1-（没有满电电池出现次数/换电次数）'
          },
          {
            title: '本日行驶里程',
            detail: '本日活跃用户行驶里程合计'
          },
          {
            title: '充放电次数',
            intro: '本日活跃用户充放电次数合计'
          },
        ]
      },
      c: {
        list: [
          {
            title: '本日净增付费用户数',
            detail: '本日发展付费用户-本日离网付费用户',
          },
          {
            title: '户均换电次数',
            detail: '本本日换电次数/活跃人数'
          },
        ]
      },
      d: {
        list: [
          {
            title: 'C端换电站数量',
            detail: 'C端电柜绑定的电站数量合计',
          },
          {
            title: 'C端换电柜数量',
            detail: '设备属性所属客户为“铁塔自用”的设备合计'
          },
          {
            title: 'C端本年净增换电柜数量',
            detail: '本年累计C端换电柜数合计-上年累计C端换电柜数合计'
          },
          {
            title: 'C端仓位数量',
            detail: 'C端电柜的仓位数合计',
          },
          {
            title: 'C端电池数量',
            detail: '设备属性所属客户为“铁塔自用”的设备合计'
          },
          {
            title: 'C端本年净增电池数',
            detail: '本年累计C端电池数合计-上年累计C端电池数合计'
          },
        ]
      },
      e: {
        list: [
          {
            title: 'B端换电柜数量',
            detail: '设备属性所属客户为非“铁塔自用”的设备合计'
          },
          {
            title: 'B端电池数量',
            detail: '设备属性所属客户为非“铁塔自用”的设备合计'
          },
        ]
      },
    }
  }
}
